<template>
  <div id="details">
    <Top></Top>
    <div class="topimg">
      <img :src="details.img" alt="">
    </div>
    <div class="tab">
      <ul>
        <li>
          <b>介绍</b>
        </li>
        <li>目录</li>
        <li>评价</li>
      </ul>
    </div>
    <div class="content_div">
      <div class="center">
        <div class="content">
          <b>{{details.content}}</b>
        </div>
        <div class="price_dv">
          <div class="vi">
            <p>VIP</p>
            <p>专享</p>
          </div>
          <div class="price">
            <b>￥{{details.price}}</b>
          </div>
        </div>
        <div class="youhui">
          <span>惠</span>
          <p>立减￥100.00</p>
          <input type="button" value="领取">
        </div>
        <div class="title_dv">
          <span>促</span>
          <p>{{details.title}}</p>
        </div>
      </div>
      <div class="kecheng">
        <div class="jianjie">
          <b>课程简介</b>
        </div>
        <div class="neirong">
          ▲
          <b>橘子老师为官方认证行家老师</b>
        </div>
        <div class="neirong">
          ▲
          <b>本课程以获得1600w+好评，4w+学员已加入</b>
        </div>
        <div class="neirong">
          ▲
          <b>本课程荣获云课程金云奖</b>
        </div>
      </div>
    </div>
    <div class="bottom">
      <div class="xiaoxi">
        <p>✉</p>
        <p>消息</p>
      </div>
      <div class="stay">
        <p>❤</p>
        <p>想学</p>
      </div>
      <div class="ipt">
        <input type="button" value="会员下单">
      </div>
    </div>
  </div>
</template>

<script>
import Top from "../../components/ycb/details/top.vue";
export default {
  components: {
    Top
  },
  data() {
    return {
      details:{
        img:this.$route.query.img,
        content:this.$route.query.title,
        price:this.$route.query.price,
        title:this.$route.query.title
      }
    };
  }
};
</script>

<style scoped>
#details {
  width: 100%;
}
.topimg {
  width: 100%;
  height: 2.1rem;
  margin-top: 0.5rem;
  background-color: yellow;
}
.topimg img {
  width: 100%;
  height: 100%;
}
.tab {
  width: 100%;
  height: 0.4rem;
  border-bottom: 0.02rem solid #f6f6f6;
}
.tab ul {
  width: 100%;
  height: 100%;
}
.tab ul li {
  width: 33%;
  height: 100%;
  line-height: 0.4rem;
  text-align: center;
  font-size: 0.14rem;
  float: left;
}
.content_div {
  width: 100%;
}
.center {
  width: 3.5rem;
  height: 2.1rem;
  background-color: white;
  margin: auto;
  margin-bottom: 0.1rem;
}
.content {
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
  font-size: 0.16rem;
  border-bottom: 0.01rem solid #f6f6f6;
}
.price_dv {
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
  font-size: 0.14rem;
  border-bottom: 0.01rem solid #f6f6f6;
}
.vi {
  width: 0.56rem;
  height: 100%;
  line-height: 0.5rem;
  margin-right: 0.08rem;
  float: left;
}
.vi p {
  width: 50%;
  float: left;
  font-size: 0.1rem;
  height: 0.2rem;
  line-height: 0.2rem;
  text-align: center;
  margin-top: 0.15rem;
}
.vi p:nth-child(2) {
  background-color: #fcdfb1;
  color: #473e32;
}
.vi p:nth-child(1) {
  background-color: #473e32;
  color: #fcdfb1;
}
.price {
  width: 2.5rem;
  height: 100%;
  line-height: 0.5rem;
  color: #fa1f00;
  font-size: 0.16rem;
  float: left;
}
.youhui {
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
  font-size: 0.14rem;
  border-bottom: 0.01rem solid #f6f6f6;
}
.youhui span {
  width: 0.18rem;
  height: 0.18rem;
  background-color: #fa1f00;
  display: block;
  float: left;
  color: white;
  font-size: 0.12rem;
  text-align: center;
  line-height: 0.18rem;
  margin-right: 0.05rem;
  margin-top: 0.15rem;
}
.youhui p {
  width: 1.2rem;
  height: 100%;
  line-height: 0.5rem;
  font-size: 0.12rem;
  color: #fa1f00;
  float: left;
}
.youhui input {
  width: 0.6rem;
  height: 0.24rem;
  font-size: 0.14rem;
  color: #fa1f00;
  float: right;
  text-align: center;
  line-height: 0.22rem;
  border: 0.01rem solid #fa1f00;
  border-radius: 0.05rem;
  margin-top: 0.13rem;
}
.title_dv {
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
  font-size: 0.14rem;
  border-bottom: 0.01rem solid #f6f6f6;
}
.title_dv span {
  width: 0.18rem;
  height: 0.18rem;
  background-color: #fa1f00;
  display: block;
  float: left;
  color: white;
  font-size: 0.12rem;
  text-align: center;
  line-height: 0.18rem;
  margin-right: 0.05rem;
  margin-top: 0.15rem;
}
.title_dv p {
  width: 3.2rem;
  height: 100%;
  line-height: 0.5rem;
  font-size: 0.12rem;
  color: #fa1f00;
  float: left;
}
.kecheng {
  width: 3.5rem;
  height: 2rem;
  margin: auto;
}
.jianjie {
  width: 100%;
  height: 0.4rem;
  line-height: 0.4rem;
  font-size: 0.16rem;
}
.neirong {
  width: 100%;
  height: 0.2rem;
  font-size: 0.14rem;
  line-height: 0.2rem;
}
.bottom {
  width: 100%;
  height: 0.54rem;
  background-color: white;
  position: fixed;
  z-index: 999;
  bottom: 0;
}
.xiaoxi {
  width: 1rem;
  height: 100%;
  text-align: center;
  float: left;
}
.stay {
  width: 0.74rem;
  height: 100%;
  float: left;
  text-align: center;
}
.ipt {
  width: 1.96rem;
  height: 100%;
  float: left;
}
.ipt input {
  width: 1.8rem;
  height: 0.4rem;
  border-radius: 0.2rem;
  display: block;
  margin: auto;
  font-size: 0.14rem;
  color: white;
  margin-top: 0.05rem;
  background-color: #fe3a3e;
}
</style>
